/** 病害相关的数据库初始化 */
import {
	TAB_KEYWORDS
} from "../config";

/** 初始化关键字表 */
export const createKeywordsTable = db => {
	const sql = `
		create table if not exists '${TAB_KEYWORDS}'(
			 _id  varchar(255),
			 id  int primary key,
			 diseaseStandardLibraryId   varchar(255),
			 leaf   int,
			 name   varchar(255),
			 recordCreateDate   int,
			 recordUpdateDate   int,
			 treeId   varchar(255),
			 treeLevel   int
			
		);
	`;
	return db.execute(sql);
}
